<div class="contents">
  <ol class="breadcrumb">
    <li><a href="#/index/panel">首页</a></li>
    <li><a href="#/role/list">角色列表</a></li>
    <li class="active">{{id ? "修改角色" : "新增角色"}}</li>
  </ol>
  <form class="form-horizontal" role="form" name="form" ng-submit="save()" novalidate> 
    <div class="form-group" ng-class="{'has-error':form.groupName.$invalid}">
      <label class="col-sm-2 control-label">角色名称</label>
      <div class="col-sm-5">
        <input type="text" class="form-control" placeholder="角色名称,如产品主管岗" name="groupName" ng-model="item.groupName" required="required">
      </div>
    </div>
    <div class="form-group" ng-class="{'has-error':form.groupRemark.$invalid}">
      <label for="advertLinkInput" class="col-sm-2 control-label">角色描述备注</label>
      <div class="col-sm-5">
        <input type="text" class="form-control" id="advertLinkInput" placeholder="资源描述" name="groupRemark" ng-model="item.groupRemark" required="required">
      </div>
    </div>  
    <div class="form-group" ng-class="{'has-error':form.actionRemark.$invalid}">
      <label class="col-sm-2 control-label">选择权限</label>
      <div class="col-sm-8">
        <label ng-repeat="action in actionList" style="float:left;width:230px;">
          <input type="checkbox" name="actionId" value="{{action.actionId}}" ng-model="allActions[action.actionId]">{{action.actionfunction}}
        </label>
      </div>
    </div> 
    <div class="form-group">
      <div class="col-sm-offset-2 col-sm-5">
        <button type="submit" class="btn btn-default">提交</button>
      </div>
    </div>
  </form>
</div>


